package com.guaoran.interview.before.designPatterns;

/**
 * @author : guCheng
 * @title : LanHan 
 * @Description : 
 * 	 懒汉
 * @date :2018年3月11日下午8:21:56
 */
public class LanHan {
	private static volatile LanHan lanHan;
	private LanHan(){}
	public static LanHan getInteface(){
		if(lanHan==null){
			synchronized (LanHan.class) {
				if(lanHan==null){
					lanHan = new LanHan();
				}
			}
		}
		return lanHan;
	}
}
